﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="DataSet2" targetNamespace="http://tempuri.org/DataSet2.xsd" xmlns:mstns="http://tempuri.org/DataSet2.xsd" xmlns="http://tempuri.org/DataSet2.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="QLBHConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="QLBHConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.QLBHConnectionString.ConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="SAN_PHAMTableAdapter" GeneratorDataComponentClassName="SAN_PHAMTableAdapter" Name="SAN_PHAM" UserDataComponentName="SAN_PHAMTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="QLBHConnectionString (Web.config)" DbObjectName="QLBH.dbo.SAN_PHAM" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [SAN_PHAM] WHERE (([MA_SAN_PHAM] = @Original_MA_SAN_PHAM))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MA_SAN_PHAM" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MA_SAN_PHAM" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        MA_SAN_PHAM, MA_NHOM_SAN_PHAM, TEN_SAN_PHAM, GIA_BAN, DON_VI_TINH, GIAM_GIA
FROM            SAN_PHAM</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [SAN_PHAM] SET [MA_SAN_PHAM] = @MA_SAN_PHAM, [MA_NHOM_SAN_PHAM] = @MA_NHOM_SAN_PHAM, [TEN_SAN_PHAM] = @TEN_SAN_PHAM, [GIA_BAN] = @GIA_BAN, [DON_VI_TINH] = @DON_VI_TINH, [GIAM_GIA] = @GIAM_GIA WHERE (([MA_SAN_PHAM] = @Original_MA_SAN_PHAM))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MA_SAN_PHAM" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MA_SAN_PHAM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@MA_NHOM_SAN_PHAM" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MA_NHOM_SAN_PHAM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@TEN_SAN_PHAM" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="TEN_SAN_PHAM" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@GIA_BAN" Precision="18" ProviderType="Decimal" Scale="0" Size="0" SourceColumn="GIA_BAN" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@DON_VI_TINH" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="DON_VI_TINH" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="Decimal" Direction="Input" ParameterName="@GIAM_GIA" Precision="18" ProviderType="Decimal" Scale="0" Size="0" SourceColumn="GIAM_GIA" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="String" Direction="Input" ParameterName="@Original_MA_SAN_PHAM" Precision="0" ProviderType="NVarChar" Scale="0" Size="0" SourceColumn="MA_SAN_PHAM" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="MA_SAN_PHAM" DataSetColumn="MA_SAN_PHAM" />
              <Mapping SourceColumn="MA_NHOM_SAN_PHAM" DataSetColumn="MA_NHOM_SAN_PHAM" />
              <Mapping SourceColumn="TEN_SAN_PHAM" DataSetColumn="TEN_SAN_PHAM" />
              <Mapping SourceColumn="GIA_BAN" DataSetColumn="GIA_BAN" />
              <Mapping SourceColumn="DON_VI_TINH" DataSetColumn="DON_VI_TINH" />
              <Mapping SourceColumn="GIAM_GIA" DataSetColumn="GIAM_GIA" />
            </Mappings>
            <Sources />
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="DataSet2" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:EnableTableAdapterManager="true" msprop:Generator_DataSetName="DataSet2" msprop:Generator_UserDSName="DataSet2">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="SAN_PHAM" msprop:Generator_TableClassName="SAN_PHAMDataTable" msprop:Generator_TableVarName="tableSAN_PHAM" msprop:Generator_TablePropName="SAN_PHAM" msprop:Generator_RowDeletingName="SAN_PHAMRowDeleting" msprop:Generator_RowChangingName="SAN_PHAMRowChanging" msprop:Generator_RowEvHandlerName="SAN_PHAMRowChangeEventHandler" msprop:Generator_RowDeletedName="SAN_PHAMRowDeleted" msprop:Generator_UserTableName="SAN_PHAM" msprop:Generator_RowChangedName="SAN_PHAMRowChanged" msprop:Generator_RowEvArgName="SAN_PHAMRowChangeEvent" msprop:Generator_RowClassName="SAN_PHAMRow">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="MA_SAN_PHAM" msprop:Generator_ColumnVarNameInTable="columnMA_SAN_PHAM" msprop:Generator_ColumnPropNameInRow="MA_SAN_PHAM" msprop:Generator_ColumnPropNameInTable="MA_SAN_PHAMColumn" msprop:Generator_UserColumnName="MA_SAN_PHAM">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="MA_NHOM_SAN_PHAM" msprop:Generator_ColumnVarNameInTable="columnMA_NHOM_SAN_PHAM" msprop:Generator_ColumnPropNameInRow="MA_NHOM_SAN_PHAM" msprop:Generator_ColumnPropNameInTable="MA_NHOM_SAN_PHAMColumn" msprop:Generator_UserColumnName="MA_NHOM_SAN_PHAM">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="TEN_SAN_PHAM" msprop:Generator_ColumnVarNameInTable="columnTEN_SAN_PHAM" msprop:Generator_ColumnPropNameInRow="TEN_SAN_PHAM" msprop:Generator_ColumnPropNameInTable="TEN_SAN_PHAMColumn" msprop:Generator_UserColumnName="TEN_SAN_PHAM">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="500" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GIA_BAN" msprop:Generator_ColumnVarNameInTable="columnGIA_BAN" msprop:Generator_ColumnPropNameInRow="GIA_BAN" msprop:Generator_ColumnPropNameInTable="GIA_BANColumn" msprop:Generator_UserColumnName="GIA_BAN" type="xs:decimal" />
              <xs:element name="DON_VI_TINH" msprop:Generator_ColumnVarNameInTable="columnDON_VI_TINH" msprop:Generator_ColumnPropNameInRow="DON_VI_TINH" msprop:Generator_ColumnPropNameInTable="DON_VI_TINHColumn" msprop:Generator_UserColumnName="DON_VI_TINH">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="255" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GIAM_GIA" msprop:Generator_ColumnVarNameInTable="columnGIAM_GIA" msprop:Generator_ColumnPropNameInRow="GIAM_GIA" msprop:Generator_ColumnPropNameInTable="GIAM_GIAColumn" msprop:Generator_UserColumnName="GIAM_GIA" type="xs:decimal" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:SAN_PHAM" />
      <xs:field xpath="mstns:MA_SAN_PHAM" />
    </xs:unique>
  </xs:element>
</xs:schema>